<!--  -->
<template>
 
    <el-button @click="add" link type="text">+添加</el-button>
</template>

<script lang='ts' setup>
import { reactive, toRefs, ref, defineProps, defineEmits } from 'vue'

const emits = defineEmits(['reload'])

const props = defineProps({
    schedule: {
        type: Object,
        required: true
    }
})

const data = reactive(
    {
        ...props.schedule,staffId:0

    }
)


const add = () => {

    console.log(data);
    

}

</script>
 